<template>
  <!-- <router-view /> -->
  <router-view v-slot="{ Component }" v-if="isQiankun">
    <keep-alive>
      <component :is="Component" v-if="$route.meta.keepAlive" :key="$route.fullPath"></component>
    </keep-alive>
    <component :is="Component" v-if="!$route.meta.keepAlive"></component>
  </router-view>
  <LayoutView v-else></LayoutView>
</template>
<script setup>
import LayoutView from '@/views/LayoutView.vue';
import { ref } from 'vue'
import { ResourceCardStylesCache } from '@/utils/cache-util'
import dbPublicApi from '@/api/dbPublic';
const isQiankun = ref(window.__POWERED_BY_QIANKUN__)

const getAllCardStyle = () => {
  dbPublicApi.queryMenuCornerMarkPcApi().then(res => {
    if (res.data.code == 200) {
      ResourceCardStylesCache.set(res.data.data)
      console.log(ResourceCardStylesCache.get())
    }
  });
};
getAllCardStyle()

</script>
<style lang="scss">
@import './assets/css/base.scss';
@import './assets/css/public.scss';
@import './assets/css/dashBoard.scss';
</style>
